//
//  ViewController.m
//  FHTestFrameworkResource
//
//  Created by leo on 2021/4/22.
//

#import "ViewController.h"
#import <FHStaticFramework/FHStaticFramework.h>
#import <FHDynamicFramework/FHDynamicFramework.h>
#import "FHStaticLibrary.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    for (int i = 0; i < 3; i++) {
        switch (i) {
            case 0: {
                UIImage *dynamicImg = [FHDynamicTool getImageInFramework];
                UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
                [self.view addSubview:imgView];
                imgView.image = dynamicImg;
            }
                break;
            case 1: {
                UIImage *staticImg = [FHStaticTool getImageInFramework];
                UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 300, 100, 100)];
                [self.view addSubview:imgView];
                imgView.image = staticImg;
            }
                break;
            case 2: {
                UIImage *staticLibImg = [FHStaticLibTool getImageInFramework];
                UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 500, 100, 100)];
                [self.view addSubview:imgView];
                imgView.image = staticLibImg;
            }
                break;
            default:
                break;
        }
    }
}

@end
